package cn.stylefeng.guns.modular.demo.controller.domain;

import cn.stylefeng.guns.dao.entity.Rule;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@Data
public class ReportVO {
    @ApiModelProperty("供应商编码")
    private String supplierCode;
    @ApiModelProperty("供应商名字")
    private String supplierName;


    @ApiModelProperty("入库数量")
    private Integer saleNum;

    @ApiModelProperty("现金金额(元)")
    private BigDecimal cashPrice;
    @ApiModelProperty("票折金额(元)")
    private BigDecimal ticketPrice;



    private List<GoodsReportVO> goodsReportList;

    @Data
    public static class GoodsReportVO {
        @ApiModelProperty("商品编码")
        private String commodityCode;
        @ApiModelProperty("商品名字")
        private String commodityName;
        @ApiModelProperty("入库数量")
        private Integer saleNum;
        @ApiModelProperty("现金金额(元)")
        private BigDecimal cashPrice;
        @ApiModelProperty("票折金额(元)")
        private BigDecimal ticketPrice;


        @ApiModelProperty("依赖的进销存数据")
        private List<String> saleStockIdList;
    }

    @Data
    public static class RuleReportVO {
        @ApiModelProperty("返利政策")
        private Rule rule;

        @ApiModelProperty("现金金额(元)")
        private BigDecimal cashPrice;
        @ApiModelProperty("票折金额(元)")
        private BigDecimal ticketPrice;
    }

}
